import request from '@/utils/request'

// 分页查询案件
export const getCasePage = (params) => {
  return request({
    url: '/case/page',
    method: 'get',
    params
  })
}

// 获取案件详情
export const getCaseDetail = (id) => {
  return request({
    url: `/case/${id}`,
    method: 'get'
  })
}

// 获取热门案件列表
export const getHotCases = () => {
  return request({
    url: '/case/hot',
    method: 'get'
  })
}
